﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using DeSleeper.Client.Properties;
using DeSleeper.Library;

namespace DeSleeper.Client.WakeUp
{
    class LiveMeshWakeUpDestination : WakeUpDestination
    {
        private CloudSettings _settings;
        #region Overrides of Freezable

        protected override Freezable CreateInstanceCore()
        {
            return new LiveMeshWakeUpDestination();
        }

        #endregion

        #region Overrides of WakeUpDestination

        public override void WakeUp(TargetComputer targetComputer)
        {
            //var data = MeshData.GetFromCloud(Settings.Default.CloudSettings);
            //data.AddWakeRequest(hostName);
        }

        protected override IEnumerable<WakeUpMethod> InnerMethods
        {
            get { throw new System.NotImplementedException(); }
        }

        public override string Description
        {
            get { return string.Format("Wake up a machine using LiveID {0}", _settings.UserID); }
        }

        #region Id Dependency Property
        /// <summary>
        /// Id Dependency Property.
        /// </summary>
        public static readonly DependencyProperty IdProperty =
            DependencyProperty.Register(
                "Id",
                typeof(string),
                typeof(ProxyWakeUpDestination));

        /// <summary>
        /// Identifier used to identify target to code.
        /// </summary>
        public override string Id
        {
            get { return (string)GetValue(IdProperty); }
            set { SetValue(IdProperty, value); }
        }
        #endregion

        #endregion
    }
}
